package com.lx.pc.service.worderCategory.impl;

import java.math.BigInteger;
import java.util.List;

import org.springframework.stereotype.Service;

import com.lx.pc.domain.entity.wordercategory.WOrderCategoryEntity;
import com.lx.pc.domain.vo.wordercategory.WOrderCategoryVo;
import com.lx.pc.mybatis.repository.wordercategory.WOrderCategoryRepository;
import com.lx.pc.service.AbstractService;
import com.lx.pc.service.worderCategory.IWOrderCategoryService;

@Service("wOrderCategoryService")
public class WOrderCategoryServiceImpl extends AbstractService<WOrderCategoryEntity, WOrderCategoryVo, BigInteger, WOrderCategoryRepository> implements IWOrderCategoryService{

	@Override
	public List<WOrderCategoryVo> findByWOrderCategory(WOrderCategoryVo orderCategoryEntity) {

		return etoV(repository.findByWOrderCategory(orderCategoryEntity));
	}

	@Override
	public WOrderCategoryVo findBySumPrice(WOrderCategoryVo orderCategoryVo) {

		return etoV(repository.findBySumPrice(orderCategoryVo));
	}

	@Override
	public Integer updateOrderCategory(WOrderCategoryVo orderCategoryVo) {

		return repository.updateOrderCategory(orderCategoryVo);
	}

	@Override
	public Float findByTotalPriceCount(WOrderCategoryVo orderCategoryVo) {

		return repository.findByTotalPriceCount(orderCategoryVo);
	}

}
